package avicit.bdp.dcs.tools.enums;

import avicit.bdp.core.enums.BaseEnum;

/**
 * @金航数码科技有限责任公司
 * @作者：developer
 * @邮箱：developer@avic-digital.com
 * @创建时间： 2020-08-14 10:46
 * @类说明：
 * @修改记录：
 */
public enum HiveDataType implements BaseEnum {

    TINYINT(0, "TINYINT"),
    SMALLINT(1, "SMALLINT"),
    INT(2, "INT"),
    BIGINT(3, "BIGINT"),
    BOOLEAN (4, "BOOLEAN"),
    FLOAT(5, "FLOAT"),
    DOUBLE(6, "DOUBLE"),
    STRING(7, "STRING"),
    TIMESTAMP(8, "TIMESTAMP"),
    DATE(9,"DATE"),
    VARCHAR(10,"VARCHAR"),
    CHAR(11,"CHAR"),
    DECIMAL(12,"DECIMAL");

    HiveDataType(int code, String descp){
        this.code = code;
        this.descp = descp;
    }

    private final int code;
    private final String descp;

    public int getCode() {
        return code;
    }

    public String getDescp() {
        return descp;
    }

}
